package controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import utils.ConstantUtils;
import utils.SessionHelper;
import form.RegistrationForm;

public class EditUserAction extends Action {

	public ActionForward execute(ActionMapping mapping,
			ActionForm form,
			HttpServletRequest request,
			HttpServletResponse response)
					throws Exception {
//
//		request.setAttribute("userId", request.getParameter("id"));
//		request.setAttribute("userEmail", request.getParameter("email"));
//		request.setAttribute("userPassword", request.getParameter("password"));
		
		SessionHelper.setSessionAttribute(request, "tipoUsuarioList", ConstantUtils.TIPO_USUARIO_LIST);

		return mapping.findForward("success");
	}

}
